﻿// ===============================================================================
// XCI.NET 西安交通信息WinForm开发框架 2018 版权所有
// ===============================================================================
namespace XCI.Sys
{
    /// <summary>
    /// WinForm应用程序设置
    /// </summary>
    public class WinFormSetting
    {
        /// <summary>
        /// 应用程序标识
        /// </summary>
        public string Id { get; set; }

        /// <summary>
        /// 接口服务器
        /// </summary>
        public string ApiUrl { get; set; }

        /// <summary>
        /// 接口连接超时时间(毫秒为单位),默认10秒 即 10000毫秒
        /// </summary>
        public int ApiTimeout { get; set; } = 10000;

        /// <summary>
        /// 系统标题
        /// </summary>
        public string Title { get; set; } = "西交投业务管理系统";

        /// <summary>
        /// 开发商
        /// </summary>
        public string CompanyName { get; set; } = "西安交通信息投资营运有限公司";

        /// <summary>
        /// 版权
        /// </summary>
        public string Copyright { get; set; } = "西安交通信息 版权所有";

        /// <summary>
        /// 产品版本
        /// </summary>
        public string Version { get; set; } = "1.0";

        /// <summary>
        /// 产品网站
        /// </summary>
        public string WebSite { get; set; } = "http://www.xci96716.com";

        /// <summary>
        /// 服务电话
        /// </summary>
        public string Telephone { get; set; } = "029-88233366";

        /// <summary>
        /// 调试模式
        /// </summary>
        public bool IsDebugMode { get; set; } = true;

        /// <summary>
        /// 是否只允许运行一个实例
        /// </summary>
        public bool IsSingleton { get; set; } = true;

        /// <summary>
        /// 是否启用系统更新
        /// </summary>
        public bool EnableUpdate { get; set; } = false;

        /// <summary>
        /// 是否同步日期
        /// </summary>
        public bool EnableSyncDate { get; set; } = false;
         
        /// <summary>
        /// 允许自动锁定主界面
        /// </summary>
        public bool AllowAutoLockMain { get; set; } = false;

        /// <summary>
        /// 自动锁定间隔,单位分钟(无操作的情况下)
        /// </summary>
        public long AutoLockInterval { get; set; } = 2;//2分钟

        /// <summary>
        /// 在任务栏通知区域显示图标
        /// </summary>
        public bool ShowNotification { get; set; } = false;

        /// <summary>
        /// 关闭主窗口时程序控制：true:退出程序,false 隐藏程序
        /// </summary>
        public bool CloseMainIsExit { get; set; } = true;

        /// <summary>
        /// 主页面显示标题头
        /// </summary>
        public bool MainPageShowCaption { get; set; } = false;

        /// <summary>
        /// 菜单使用大图标
        /// </summary>
        public bool NavMenuLargeIcons { get; set; } = true;

        /// <summary>
        /// 主页面工具栏图标使用大图标
        /// </summary>
        public bool MainPageToolbarLargeIcons { get; set; } = false;

        /// <summary>
        /// 分页控件每页数量,默认:20
        /// </summary>
        public int PageSize { get; set; } = 20;

        /// <summary>
        /// 分页控件每页数量快捷选择,多个用逗号隔开
        /// </summary>
        public string PageSizeList { get; set; } = "10,20,50,100,200";

        /// <summary>
        /// 是否允许配置表格
        /// </summary>
        public bool AllowGridSetting { get; set; } = true;

        /// <summary>
        /// 表格配置本地模式
        /// </summary>
        public bool GridSettingLocalMode { get; set; } = false;
    }
}